package com.xc.pattern.builder;

/**
 * @author xingchen
 * @description
 * @create 2022-08-21 22:16
 */
public class HighComputerBuilder implements Builder {

    private Computer computer = new Computer();

    @Override
    public void bulideCpu() {
        computer.setCpu("高配 CPU");
    }

    @Override
    public void bulidMainboard() {
        computer.setMainboard("高配 主板");
    }

    @Override
    public void bulidDisk() {
        computer.setDisk("高配 磁盘");
    }

    @Override
    public void bulidPower() {
        computer.setPower("高配 电源");
    }

    @Override
    public void bulidMemory() {
        computer.setMemory("高配 内存");
    }

    @Override
    public Computer createComputer() {
        return computer;
    }
}
